package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.NewsCrawledMapper;
import com.yunji.framework_template.orm.persistence.model.NewsCrawled;

/**
 * Created by fenglibin on 2018/11/28.
 */
@Service
public class NewsCrawledService {

    @Autowired
    private NewsCrawledMapper newsCrawledMapper;

    public int deleteByPrimaryKey(String urlMd5) {
        return newsCrawledMapper.deleteByPrimaryKey(urlMd5);
    }

    public int insert(NewsCrawled record) {
        return newsCrawledMapper.insert(record);
    }

    public int insertSelective(NewsCrawled record) {
        return newsCrawledMapper.insertSelective(record);
    }

    public NewsCrawled selectByPrimaryKey(String urlMd5) {
        return newsCrawledMapper.selectByPrimaryKey(urlMd5);
    }

    public int updateByPrimaryKeySelective(NewsCrawled record) {
        return newsCrawledMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NewsCrawled record) {
        return newsCrawledMapper.updateByPrimaryKey(record);
    }

    public List<NewsCrawled> selectByCondition(NewsCrawled record) {
        return newsCrawledMapper.selectByCondition(record);
    }

    public List<NewsCrawled> selectAll() {
        return newsCrawledMapper.selectAll();
    }

    public List<NewsCrawled> selectByPage(Page<NewsCrawled> page) {
        return newsCrawledMapper.selectByPage(page);
    }

    public Long count(NewsCrawled record) {
        return newsCrawledMapper.count(record);
    }

    public int deleteByCondition(NewsCrawled record) {
        return newsCrawledMapper.deleteByCondition(record);
    }

}
